
Version:=3.9.5
ModuleName:=tcpdump

Objcet:=$(ModuleName).tar.gz
ObjectDir:=$(ModuleName)-$(Version)
ObjcetSource:=$(ModuleName)-$(Version).tar.gz

DependFiles:=

InstallDir:=usr/local/bin


.PHONY: all $(ObjectDir) clean dist_clean

all:$(Objcet)

$(Objcet): $(ObjcetSource)
	tar -xzf $(ObjcetSource)
	mkdir -p $(InstallDir)
	cd $(ObjectDir);./configure; 
	patch -p0 < Patch.Makefile.diff
	$(MAKE) -C $(ObjectDir)
	cp $(ObjectDir)/$(ModuleName) $(InstallDir)
	tar czf $(Objcet) usr

clean:
	rm -rf $(Objcet) usr

dist_clean:clean
	rm -rf $(ObjectDir) $(ObjcetSource)
	
include ../../Makefile.Res
